package com.ruoyi.project.websocket.component;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.websocket.*;
import javax.websocket.server.PathParam;
import javax.websocket.server.ServerEndpoint;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;

@ServerEndpoint("/im/{userId}")
@Component
@Slf4j
public class SocketServer {
    public static Map<String, Session> userSessionMap = new ConcurrentHashMap<>();

}
